package com.kabigon.tiny.controller;

import com.kabigon.tiny.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.tiny.controller
 * @data 2022/12/17 2:05
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/test1")
    public List<Map<String, Object>> test1() {
        return userService.selectList1();
    }

    @RequestMapping("/test2")
    public List<Map<String, Object>> test2() {
        return userService.selectList2();
    }
}
